import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

showToast(BuildContext context, String msg) {
  FlutterToast(context).showToast(
      child: Container(
          padding: EdgeInsets.all(10),
          decoration: BoxDecoration(
              color: Colors.black, borderRadius: BorderRadius.circular(4)),
          child: Text(msg,
              style: TextStyle(
                color: Colors.white,
              ))),
      gravity: ToastGravity.CENTER);
}
